<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateUsersTableler extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
         Schema::create('users', function (Blueprint $table) {
            $table->increments('id') -> comment('ID');
            $table->string('username') -> comment('用户名');
            $table->string('password') -> comment('密码');
            $table->string('email') -> comment('邮箱');
            $table->tinyInteger('status') -> comment('状态');
            $table->string('token') -> comment('令牌');
            $table->timestamps();
        });

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
         Schema::drop('users');
    }
}
